@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
Ems Management ::
@parent
@stop

@section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">Ems list</li>
@stop

@section('content.main')

<p>{{ link_to_route('car_balance.ems.create', 'Add new Ems', null, array('class' => 'btn btn-info')) }}</p>


{{  $emss->links() }}

<table class="table table-bordered table-striped table-hover">
    <thead>
    <tr>
                <th>Id</th>
                <th>Ems Id</th>
                <th>Send Date</th>
                <th>Fee Japan</th>
                <th>Recieve Date</th>
                <th>Fee Mongol</th>
                <th>Comment</th>
        
        <th class="span2">Actions</th>
    </tr>
    </thead>
    <tbody>
    @foreach ($emss as $ems)
    <tr>
        <td>{{  link_to_route('car_balance.ems.show', $ems->id, array($ems->id), array()) }}</td>
        <td>{{  $ems->ems_id }}</td>
        <td>{{  $ems->send_date }}</td>
        <td>{{  $ems->fee_japan }}</td>
        <td>{{  $ems->recieve_date }}</td>
        <td>{{  $ems->fee_mongol }}</td>
        <td>{{  $ems->comment }}</td>


        <td>
            <a href="{{  route('car_balance.ems.edit', $ems->id) }}" class="btn btn-mini">Edit</a>
            <a href="{{  route('car_balance.ems.delete', $ems->id) }}" class="btn btn-mini btn-danger">Delete</a>
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

{{  $emss->links() }}

@stop